package com.supplychain.scm.core.common.validator.qq;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * @author liyang
 * @version 1.0.0
 * @ClassName QqCode
 * @Description QQ号码参数校验注解
 * @createTime 12:01:00 2022/11/08
 */
@Documented
@Constraint(
		validatedBy = {QqCodeValidationImpl.class}
)
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.ANNOTATION_TYPE, ElementType.CONSTRUCTOR, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
public @interface QqCode {

	boolean required() default false;

	String message() default "QQ号码格式错误";

	Class<?>[] groups() default { };

	Class<? extends Payload>[] payload() default { };
}
